import request from '@/utils/request'

const api_name = '/teach/front/teacher'
export default {
  //查询首页名师和课程数据
  pageTeacherList(current, limit) {
    return request({
      url: `${api_name}/pageList/${current}/${limit}`,
      method: 'get'
    })
  },

  //根据讲师id查询讲师信息及所讲课程
  getByTeacherId(teacherId) {
    return request({
      url: `${api_name}/getTeacherById/${teacherId}`,
      method: 'get'
    })
  },
}
